package com.huawei.appmarket.service.store.awk.card;

import android.app.Activity;
import android.content.Context;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.fastengine.fastview.startFastappEngine.bean.RpkInfo;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import o.chy;
import o.chz;
import o.cih;
import o.ebi;
import o.ebk;
import o.fsd;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0016\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0016\u0010\r\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0016J\u0012\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014H\u0016J\u0012\u0010\u0015\u001a\u00020\u00122\b\u0010\u0016\u001a\u0004\u0018\u00010\u0017H\u0014J\u0010\u0010\u0018\u001a\u00020\u00122\b\u0010\b\u001a\u0004\u0018\u00010\tJ\u0012\u0010\u0019\u001a\u00020\u00122\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bH\u0016R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0003\u001a\u00020\u0004X\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\b\u001a\u0004\u0018\u00010\tX\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\n\u001a\b\u0012\u0004\u0012\u00020\f0\u000bX\u0004¢\u0006\u0002\n\u0000¨\u0006\u001c"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/TwoLeafGrassLandscapeCard;", "Lcom/huawei/appgallery/foundation/card/base/card/BaseDistCard;", "Landroidx/databinding/ViewDataBinding;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "cardName", "", "interactiveControl", "Lcom/huawei/appmarket/service/interactive/control/InteractiveControl;", "singleItemCardList", "", "Lcom/huawei/appmarket/service/store/awk/card/TwoLeafGrassLandscapeSingleItemCard;", "bindCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/card/BaseCard;", "parent", "Landroid/view/View;", "setCardChunk", "", "cardChunk", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardChunk;", "setCardData", "data", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/bean/BaseCardBean;", "setInteractiveControl", "setOnClickListener", "cardEventListener", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public class TwoLeafGrassLandscapeCard extends BaseDistCard<ViewDataBinding> {
    private ebk ʻ;
    private String ʼ;
    private final List<TwoLeafGrassLandscapeSingleItemCard> ˋ = new ArrayList();
    private final Context ॱॱ;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000/\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J \u0010\b\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010\t2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\fH\u0016¨\u0006\u000e"}, d2 = {"com/huawei/appmarket/service/store/awk/card/TwoLeafGrassLandscapeCard$setOnClickListener$listener$1", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "onClick", "", "eventType", "", "theCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/card/AbsCard;", "onGetCardBeans", "", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "appid", "", "layoutId", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
    public static final class e implements chy {
        final /* synthetic */ TwoLeafGrassLandscapeCard ˋ;
        final /* synthetic */ chy ˎ;

        e(TwoLeafGrassLandscapeCard twoLeafGrassLandscapeCard, chy o_chy) {
            this.ˋ = twoLeafGrassLandscapeCard;
            this.ˎ = o_chy;
        }

        public void ˏ(int i, @NotNull cih o_cih) {
            Context context = null;
            fsd.ˊ((Object) o_cih, "theCard");
            chy o_chy = this.ˎ;
            if (o_chy != null) {
                o_chy.ˏ(i, o_cih);
            }
            CardBean ˌ = o_cih.ˌ();
            if (!(ˌ instanceof BaseCardBean)) {
                ˌ = null;
            }
            BaseCardBean baseCardBean = (BaseCardBean) ˌ;
            if (baseCardBean != null && ebi.ˏ(this.ˋ.ʼ)) {
                ebi ˊ = ebi.ˊ();
                Context ˎ = this.ˋ.ʼॱ;
                if (ˎ instanceof Activity) {
                    context = ˎ;
                }
                ˊ.ॱ((Activity) context, baseCardBean);
            }
        }

        @Nullable
        public List<CardBean> ˎ(@NotNull String str, @NotNull String str2) {
            fsd.ˊ((Object) str, RpkInfo.APPID);
            fsd.ˊ((Object) str2, "layoutId");
            return null;
        }
    }

    public void ˎ(@org.jetbrains.annotations.Nullable com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ˎ(com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean):void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r4 = 0;
        r3 = 0;
        r0 = r9 instanceof com.huawei.appmarket.service.store.awk.bean.TwoLeafGrassCardBean;
        if (r0 != 0) goto L_0x00af;
    L_0x0006:
        r0 = r3;
        r0 = (com.huawei.appmarket.service.store.awk.bean.TwoLeafGrassCardBean) r0;
        if (r0 == 0) goto L_0x00ac;
    L_0x000b:
        r1 = r0;
        r1 = (com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean) r1;
        r8.ˊᐝ = r1;
        r1 = r0.ˊ();
        if (r1 == 0) goto L_0x004b;
    L_0x0016:
        r1 = (java.lang.Iterable) r1;
        r2 = r1.iterator();
    L_0x001c:
        r1 = r2.hasNext();
        if (r1 == 0) goto L_0x004b;
    L_0x0022:
        r1 = r2.next();
        r1 = (com.huawei.appmarket.service.store.awk.bean.BannerV9CardBean) r1;
        r5 = "it";
        o.fsd.ॱ(r1, r5);
        r5 = r0.ॱᐧ();
        r1.ʼ(r5);
        r5 = r0.ॱˉ();
        r1.ˋˋ(r5);
        r5 = r0.ॱꓸ();
        r1.ˏˏ(r5);
        r5 = r0.ॱˍ();
        r1.ᐝ(r5);
        goto L_0x001c;
    L_0x004b:
        r1 = r0 instanceof o.ebh;
        if (r1 != 0) goto L_0x00ad;
    L_0x004f:
        r1 = r3;
        r1 = (o.ebh) r1;
        if (r1 == 0) goto L_0x0062;
    L_0x0054:
        r2 = r8.ʻ;
        if (r2 == 0) goto L_0x005b;
    L_0x0058:
        r2.ˋ(r1);
    L_0x005b:
        r1 = r8.ʻ;
        if (r1 == 0) goto L_0x0062;
    L_0x005f:
        r1.ˊ();
    L_0x0062:
        r1 = r8.ˋ;
        r1 = (java.lang.Iterable) r1;
        r6 = r1.iterator();
        r2 = r4;
        r1 = r6.hasNext();
        if (r1 == 0) goto L_0x00ab;
    L_0x0071:
        r1 = r6.next();
        r5 = r2 + 1;
        if (r2 >= 0) goto L_0x007c;
        o.frj.ˊ();
        r1 = (com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeSingleItemCard) r1;
        r7 = r0.ˊ();
        if (r7 == 0) goto L_0x009a;
        r2 = o.frm.ˎ(r7, r2);
        r2 = (com.huawei.appmarket.service.store.awk.bean.BannerV9CardBean) r2;
        if (r2 != 0) goto L_0x009c;
        r1 = r1.ˉ();
        if (r1 == 0) goto L_0x0096;
        r2 = 4;
        r1.setVisibility(r2);
        r2 = r5;
        goto L_0x006b;
        r2 = r3;
        goto L_0x008a;
        r7 = r1.ˉ();
        if (r7 == 0) goto L_0x00a5;
        r7.setVisibility(r4);
        r2 = (com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean) r2;
        r1.ˏ(r2);
        goto L_0x0096;
    L_0x00ac:
        return;
    L_0x00ad:
        r1 = r0;
        goto L_0x0050;
    L_0x00af:
        r0 = r9;
        goto L_0x0007;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ˎ(com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean):void");
    }

    @org.jetbrains.annotations.Nullable
    public o.cgz<?> ˏ(@org.jetbrains.annotations.NotNull android.view.View r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ˏ(android.view.View):o.cgz<?>
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r0 = "parent";
        o.fsd.ˊ(r5, r0);
        r4.ʽ(r5);
        r0 = 2;
        r0 = new java.lang.Integer[r0];
        r1 = 0;
        r2 = o.ewm.j.ʽꜞ;
        r2 = java.lang.Integer.valueOf(r2);
        r0[r1] = r2;
        r1 = 1;
        r2 = o.ewm.j.ʽꞌ;
        r2 = java.lang.Integer.valueOf(r2);
        r0[r1] = r2;
        r0 = o.frj.ˏ(r0);
        r0 = (java.lang.Iterable) r0;
        r1 = r0.iterator();
        r0 = r1.hasNext();
        if (r0 == 0) goto L_0x0052;
    L_0x002d:
        r0 = r1.next();
        r0 = (java.lang.Number) r0;
        r0 = r0.intValue();
        r0 = r5.findViewById(r0);
        r2 = "parent.findViewById(it)";
        o.fsd.ॱ(r0, r2);
        r2 = new com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeSingleItemCard;
        r3 = r4.ॱॱ;
        r2.<init>(r3);
        r2.ˏ(r0);
        r0 = r4.ˋ;
        r0.add(r2);
        goto L_0x0027;
        r4 = (o.cgz) r4;
        return r4;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ˏ(android.view.View):o.cgz<?>");
    }

    public void ॱ(@org.jetbrains.annotations.Nullable o.chy r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ॱ(o.chy):void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r2 = new com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard$e;
        r2.<init>(r4, r5);
        r0 = r4.ˋ;
        r0 = (java.lang.Iterable) r0;
        r3 = r0.iterator();
        r0 = r3.hasNext();
        if (r0 == 0) goto L_0x0021;
    L_0x0013:
        r0 = r3.next();
        r0 = (com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeSingleItemCard) r0;
        r1 = r2;
        r1 = (o.chy) r1;
        r0.ॱ(r1);
        goto L_0x000d;
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.TwoLeafGrassLandscapeCard.ॱ(o.chy):void");
    }

    public TwoLeafGrassLandscapeCard(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        super(context);
        this.ॱॱ = context;
    }

    public final void ॱ(@Nullable ebk o_ebk) {
        this.ʻ = o_ebk;
    }

    public void ॱ(@Nullable chz o_chz) {
        super.ॱ(o_chz);
        this.ʼ = o_chz != null ? o_chz.ˏॱ() : null;
    }
}
